import request from '@/utils/request'

// 封装接口，获取文章列表
export const getArticle = (url, obj) => {
  return request.get(url, {
    params: {
      current: obj.current, // 当前页
      pageSize: 10// 每页条数
    }
  })
}

// 获取面经详情
export const getArticleDetail = (url, id) => {
  return request.get(url, { params: { id } })
}
